package ExtendsDemo;

public class Teacher extends People{
    public Teacher() {
    }

    public Teacher(String name, int age) {
        super(name, age);
    }

    public void takingClass(){
        System.out.println(getName()+"正在讲课...");
    }
}
